#ifndef MAINSENSE_H
#define MAINSENSE_H

#include <QMainWindow>
#include<QTimer>
#include"map.h"
#include"heroplane.h"
#include"bullet.h"
#include"enemyplane.h"
#include"bomb.h"
namespace Ui {
class mainsense;
}

class mainsense : public QMainWindow
{
    Q_OBJECT

public:
    explicit mainsense(QWidget *parent = 0);
    ~mainsense();
    void initscene();

    void playGame();

    void updatePosition();

    void paintEvent(QPaintEvent *);

    void mouseMoveEvent(QMouseEvent *);

    void enemyToScene();

    void collisionDetection();

    enemyplane m_enemys[20];

    int m_recorder;

    map m_map;
    heroplane m_hero;
    QTimer m_Timer;
    bomb m_bombs[20];
    //bullet temp_bullet;

private:
    Ui::mainsense *ui;
};

#endif // MAINSENSE_H
